package com.xhh.nphm.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhh.nphm.system.domain.LogSignin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface LogSigninDao extends BaseMapper<LogSignin> {
    @Select("select top 1 pkId from logSignin where userAccount=#{loginName} AND timeLogout IS NULL ORDER BY pkid DESC")
    Long lastLoginPkidByLoginName(@Param("loginName") String loginName);
}
